//
//  CHLocationManager.h
//  CreditHub
//
//  Created by chenglang on 2024/9/28.
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>
NS_ASSUME_NONNULL_BEGIN

typedef void(^LocationBlock)(NSInteger code, CLLocation *currentLocation);

@interface CHLocationManager : NSObject<CLLocationManagerDelegate>
+ (instancetype)sharedInstance;
- (void)checkLocationPermission;
- (void)startUpdatingLocation;
- (void)stopUpdatingLocation;

@property (nonatomic, strong) CLLocation *currentLocation;
@property (nonatomic, copy) LocationBlock locationBlock;
@end

NS_ASSUME_NONNULL_END
